package windows;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JSeparator;
import javax.swing.JTextArea;

public class ManageInsumosShow extends JPanel implements ActionListener
{
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	private JButton btnShow;

	private JLabel lblNameInsumo;
	private JLabel lblCodInsumo;
	private JLabel lblListInsumos;

	private JList  lstEditFields;


	private JTextArea AreaNameInsumo;
	private JTextArea AreaCodInsumo;

	private JSeparator Separator;


	public ManageInsumosShow()
	{
		// TODO Auto-generated constructor stub

	setLayout(null);

	/***************************JButtoan**************************************/


	btnShow= new JButton("Mostrar");
	btnShow.setBounds(370,15, 80, 20);
	btnShow.addActionListener(this);
	btnShow.setVisible(true);
	add(btnShow);


   /******************************JLabel**********************************/

	lblCodInsumo=new JLabel("Codigo:");
	lblCodInsumo.setBounds(50, 15, 150, 25);
	add(lblCodInsumo);

	lblNameInsumo = new JLabel("Nombre Lista:");
	lblNameInsumo.setBounds(50, 50, 150, 25);
	add(lblNameInsumo);

	/*********************************JTextArea***********************************************/

	lblListInsumos = new JLabel("Lista de Insumos:");
	lblListInsumos.setBounds(60, 140, 150, 25);
	add(lblListInsumos);

	lstEditFields = new JList();
	lstEditFields.setBounds(180, 130, 150, 90);
	add( lstEditFields);


	AreaNameInsumo = new JTextArea();
	AreaNameInsumo.setBounds(180, 50, 150, 20);
	AreaNameInsumo.setEnabled(false);
	add(AreaNameInsumo);

	AreaCodInsumo = new JTextArea();
	AreaCodInsumo.setBounds(180, 15, 150, 20);
	add(AreaCodInsumo);

	/*******************************************************/

	Separator =new JSeparator();
	Separator.setBounds(50, 100, 360,5 );
	add(Separator);

	Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	setBounds((screenSize.width-664)/2, (screenSize.height-456)/2, 670, 310);
}



public void actionPerformed(ActionEvent e)
{

	if(e.getSource()==btnShow)
	{


	}


}

}
